export const extend = (newobj: object, oldobj: object):void => {
  for (let i in oldobj) {
    newobj[i] = oldobj[i]
  }
}